package com.xin.controller;
import com.xin.constants.CommonResult;
import com.xin.service.RoleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@RestController
@RequestMapping("/role")
@Api(tags = "角色信息")
public class RoleController {
    @Resource
    private RoleService roleService;

    /**
     * 查看所有角色信息
     * @return
     */
    @GetMapping("/findList")
    @ApiOperation("查看所有角色信息")
    public CommonResult<?> findList(){
        return CommonResult.success(this.roleService.findList(),"请求成功");
    }


}
